package com.jsh.erp.service.examine;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jsh.erp.datasource.entities.DepotHead;
import com.jsh.erp.datasource.entities.Examine;
import com.jsh.erp.datasource.vo.ExamineVo4List;
import org.apache.ibatis.annotations.Param;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @author gonge
 */
public interface ExamineService extends IService<Examine> {


    /**
     * 新增质检单。
     */
    void createExamine(JSONObject obj, HttpServletRequest request) throws Exception;


    /**
     * @param depotHead
     * 修改质检单状态（为了防止二次使用）校验质检单是否已完成（修改DepotHead and self）
     */
    void verifyExamineStatus(DepotHead depotHead) throws Exception;
}